import { createRouter, createWebHistory } from 'vue-router';

import Home from '@/views/v1/Home.vue';
import List from '@/views/v1/List.vue';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    { name: 'home', path: '/home', component: Home },
    { path: '/list', component: List },
    // { path: '/user/:id', component: User },
    // { path: '/login', component: Login },
    { path: '/car', redirect: '/login' },
  ]
});

export default router;